package cn.xi.goods.test;

import com.alibaba.fastjson.JSON;
import com.changgou.utli.IdWorker;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;

public class getLong {
    @Autowired()
    private IdWorker idWorker;

    @Test
    public void  getid(){
//        IdWorker idWorker=new IdWorker(workeId,datacenterId);
        long l = idWorker.nextId();
        System.out.println(l);


    }
}
